/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.crab.entity;

import org.hibernate.validator.constraints.Length;

import com.kaaction.common.persistence.DataEntity;

/**
 * 商品管理Entity
 * @author huanghaiming
 * @version 2017-07-18
 */
public class CrabProduct extends DataEntity<CrabProduct> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String male;		// 公蟹
	private String female;		// 母蟹
	private String photo;		// 图片
	private Double price;		// 价格
	private Integer num;		// 库存
	private Integer sort;		// 排序
	private String isShow;		// 兑换推荐
	private String link;		// 京东商城连接
	private String description;		// 商品图文详情
	
	public CrabProduct() {
		super();
	}

	public CrabProduct(String id){
		super(id);
	}

	@Length(min=1, max=32, message="名称长度必须介于 1 和 32 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=32, message="公蟹长度必须介于 0 和 32 之间")
	public String getMale() {
		return male;
	}

	public void setMale(String male) {
		this.male = male;
	}

	@Length(min=0, max=32, message="母蟹长度必须介于 0和 32 之间")
	public String getFemale() {
		return female;
	}

	public void setFemale(String female) {
		this.female = female;
	}
	
	@Length(min=1, max=255, message="图片长度必须介于 1 和 255 之间")
	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}
	
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}
	
	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}
	
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
	@Length(min=0, max=1, message="兑换推荐长度必须介于 0 和 1 之间")
	public String getIsShow() {
		return isShow;
	}

	public void setIsShow(String isShow) {
		this.isShow = isShow;
	}
	
	@Length(min=0, max=255, message="京东商城连接长度必须介于 0 和 255 之间")
	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}
	
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
}